package com.chen.controller;

import com.chen.domain.SysUser;
import com.chen.dto.R;
import com.chen.service.SysUserService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @Author: chen
 * @Date: 2021/4/19 10:02 AM
 * @Version 1.0
 */
@RestController
@Api(tags = "测试接口")
public class TestController {

    @Autowired
    private SysUserService sysUserService;

    @GetMapping("/test")
    @ApiOperation(value = "测试接口")
    public R test() {
        List<SysUser> list = sysUserService.list();
        return R.ok(list);
    }

}
